home *** CD-ROM | disk | FTP | other *** search
- Path: news.sprintlink.net!rockyd!cmcl2!schonberg!dewar
- From: dewar@cs.nyu.edu (Robert Dewar)
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Subject: Re: Hungarian notation
- Date: 23 Jan 1996 09:31:35 -0500
- Organization: Courant Institute of Mathematical Sciences
- Message-ID: <dewar.822407363@schonberg>
- References: <30C40F77.53B5@swsbbs.com> <4bd <4cc2b2$11jq@navajo.gate.net> <4cud8f$gup@news.netvision.net.il> <4dttefINNo29@keats.ugrad.cs.ubc.ca> <Pine.HPP.3.91.960122145028.27524A-100000@clear.cs.byu.edu>
- NNTP-Posting-Host: schonberg.cs.nyu.edu
- X-Newsreader: NN version 6.5.0 (NOV)
-
- Douglas said
-
- "The way I was taught, you use typedefs only for variables that are likely
- to change type (and you want to change all of the instances of that type
- at once) and for cross-platform portability (in a multi-language
- environment like Windows or when you are saving data to disk). Using it
- for most other things will, as you said, only hamper coding and debugging
- efforts. However, to use those examples to induce "typedefs are useless"
- is jumping to a bad conclusion. If you want to argue that the uses that
- I gave are bad, we can do that, but to generalize without looking at all
- potential uses isn't a good idea."
-
- It is really remarkable listening to this debate how little understanding
- of abstract types most people have. A lot of writers, like Douglas, seem
- to almost completely confuse the notions of type and representation.
-
- Indeed one could say that HN is all about enforcing this confusion!
- and making sure that type abstraction is not used as a tool in your
- program.
-
- Most amazing!
-
-